import request from '../utils/request';

const getList = () => request({
  url: '/v1/permission/list',
  method: 'get'
});

const getPage = params => request({
  url: '/v1/permission/page',
  method: 'get',
  params
});
// 按钮权限控制
const getPermission = params => request({
  url: '/v1/user/me/permission',
  method: 'get',
  params
});

export default {
  getList,
  getPage,
  getPermission
}
